package org.example.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class BookAspect {

    @Before(value = "execution(* org.example.service.BookService.*(..))")
    public void  before(JoinPoint joinPoint) {
        System.out.println("系统检测权限");
    }

}
